<template>
  <div>
    <div class="peopleBox">
      <div class="peopleBoxTop">
        <div class="peopleBoxTopLeft"></div>
        <div class="peopleBoxTopTitle">{{ title }}</div>
        <div class="peopleBoxTopright"></div>
      </div>
      <!-- <div :class="editable ? 'peopleBoxCon1' : 'peopleBoxCon'"> -->
      <slot></slot>
      <!-- </div> -->
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ""
    },
    editable: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
<style scoped lang="scss">
.peopleBox {
  margin: 24px 114px;
}
.peopleBoxTop {
  width: 100%;
  height: 30px;
  padding: 1px 0;
  display: flex;
  margin-bottom: 17px;
  justify-content: flex-start;
  align-items: center;
  line-height: 30px;
}
.peopleBoxTopLeft {
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.peopleBoxTopTitle {
  font-size: 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #252525;
  margin: 0 10px;
}
.peopleBoxTopright {
  height: 1px;
  width: 87%;
  background: #e8e8e8;
}

.peopleBoxCon {
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  width: 100%;
  margin: 12px 0 27px 0;
  position: relative;
  padding: 32px 0;
}
.peopleBoxCon1 {
  background: #ffffff;
  box-shadow: 0px 6px 16px 8px rgba(0, 0, 0, 0.03), 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  width: 100%;
  margin: 12px 0 27px 0;
  position: relative;
  padding: 32px 0;
}
.peopleBoxConCZHove {
  //  background: red
}
.peopleBoxConCZ {
  width: 72px;
  height: 32px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  // width: 80px;
  // height: 70px;
  position: absolute;
  top: 32px;
  right: 32px;
}
.peopleBoxConCZCon {
  position: absolute;
  top: 33px;
  width: 80px;
  background: #fff;
  text-align: center;
  display: none;
}
.peopleBoxConCZCondiv {
  height: 36px;
  color: #55565d;
  line-height: 36px;
  cursor: pointer;
}
.peopleBoxConCZCondiv:hover {
  background: rgba(106, 102, 246, 0.16);
  color: #6a66f6;
}
.peopleBoxConCZ:hover .peopleBoxConCZCon {
  display: block;
}
</style>
